<?php

namespace app\admin\validate;
use think\Validate;

class authrule extends Validate
{
    protected $rule = [
        'title'=>'require|yanzheng',
        'name'=>'require|yanzheng',
    ];
    protected $message = [
        'title.require'=>'请输入权限名',
        'title.yanzheng'=>'权限名不符合规范',
        'name.require'=>'请输入节点明细',
        'name.yanzheng'=>'节点不符合规范',
    ];

    protected $regex = [
        'yanzheng'  => '/-/',
    ];




}